package Decorator.Dynamic;

public class CTest implements ITestInterface{
    @Override
    public void sendMessage(String msg) {
        for(int i = 5; i >= 0; --i)
        {
            System.out.println(msg + "怪物出现还有" + i + "秒");
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        System.out.println(msg + "怪物出现！");
    }
}
